import { ReqPage, ResPage } from ".";

export namespace IManagement {
  export type StartFlag = 0 | 1;
  export type Rate = 1 | 2 | 3 | 4 | 5;

  export interface ReqManagementParams extends ReqPage {
    taskName: string;
    startFlag: StartFlag;
  }
  export interface ResManagementItem {
    createTime: string;
    cycle: number;
    id: number;
    initStartFlag: StartFlag;
    rate: Rate;
    startFlag: StartFlag;
    taskCron: string;
    taskDesc: string;
    taskKey: string;
    taskName: string;
    updateTime: string;
  }
  export interface ResManagementItemCheck extends ResManagementItem {
    count: {
      failCount: number;
      reportCount: number;
      successCount: number;
    };
  }
  export type ResManagementList = ResPage<ResManagementItem>;
}
